package com.abocode.aichat.core.interfaces.constant;

import com.abocode.aichat.util.SystemUtils;

/***
 * config
 */
public class ConfigHolder {
    private ConfigHolder() {
    }

    /**
     * 获取消息开关是否打开
     */
    public static final  boolean enableMessagePersistence() {
        return SystemUtils.getProperty("message.persistence.switch").equals(ApplicationConstant.MESSAGE_STORE_SWITCH_IS_ON);
    }

}
